package com.wanpinghui.wphlibrary.model.message;

import com.wanpinghui.wphlibrary.model.message.bean.MsgBean;
import com.wanpinghui.wphlibrary.model.message.bean.PageMsgBean;
import com.wanpinghui.wphlibrary.model.message.bean.RecentMsgBean;

import java.util.List;

import retrofit.callback.YRequestCallback;

/**
 * Created by xiongning on 17-12-1.
 */

public interface MessageService {

    //void getMsgList(String chatIM,String group_id,final YRequestCallback callback);
    void getMsgList(String chatIM,String group_id,long create_at,final YRequestCallback callback);

    PageMsgBean setCatch(List<MsgBean> datas);

    void uploadFile(String filePath,YRequestCallback callback);

    void saveSendMsbBean(MsgBean msgBean,YRequestCallback callback,boolean isSuccess);

    void getMsgHistory(String groupId, long createAt, YRequestCallback<List<MsgBean>> callback);

    void getRecentMsgBeanList( YRequestCallback<List<RecentMsgBean>> callback);

    List<RecentMsgBean> setRecentMsgBeanCache(List<MsgBean> msgBeans,boolean isChating);

    List<RecentMsgBean> setRecentMsgBeanCache(MsgBean msgBean,boolean isChating);

    void updateRecentMsgUnRead(RecentMsgBean recentMsgBean);

    void updateRecentMsgUnRead(String group_id);

    List<RecentMsgBean> getRecentMsgBeanCacheData();

    void cleanCacheData();

}
